package top.letscode.study.disconf.task;

import top.letscode.study.disconf.util.SleepUtils;

/**
 * @Author: zhengzhq
 * @Date: 2019-08-30 17:24
 * @Description: 抽象任务
 */
public abstract class AbstractBizTask implements Runnable{

    protected int counter = 1;

    public abstract void print();

    public void run() {
        while (true) {
            print();
            SleepUtils.sleepQuietly(3000);
        }
    }
}
